<?php
	$assign = [];
	function view($routeName){
		global $conf;
		global $error_msg;
		extract($GLOBALS['assign'],EXTR_OVERWRITE);
		require VIEW_PATH.$GLOBALS['conf']['view_theme'].'/'.$routeName.'.'.$GLOBALS['conf']['view_suffix'];
		exit();
	}

	function assign($name,$val){
		$GLOBALS['assign'][$name] = $val; 
	}
